package com.i2silly.wxbot.constant;

/**
 * @program: wx-bot
 * @description：全局常量
 * @author: i2silly
 * @date: 2020年11月21日 14:46:22
 */
public class WxRobotConstant {

    public static String WEBSOCKET_URL = "ws://127.0.0.1:5555";

    public static String CRON_FIVE_MIN = "0 */5 * * * ?";

    public static String CRON_TWO_MIN = "0 */2 * * * ?";

    public static String CRON_ONE_MIN = "0 */1 * * * ?";

    public static String CRON_HALF_HOUR = "0 0/30 * * * ?";

    /**
     * 获取通讯录
     */
    public static int GET_CONTACT_LIST_TYPE = 5000;

    /**
     * 获取个人信息
     */
    public static int GET_SELF_INFO_TYPE = 6500;

    /**
     * 发送群艾特成员消息
     */
    public static int SEND_AT_MSG_TYPE = 550;

    /**
     * 发送文本消息
     */
    public static int SEND_TXT_MSG_TYPE = 555;

    /**
     * 获取所有群信息
     */
    public static int GET_CHATROOM_TYPE = 5010;

    /**
     * 获取群内成员信息
     */
    public static int GET_CHATROOM_MEMBER_TYPE = 5020;

    public static String PROTOCOL = "http://";

    public static String LOCALHOST = "127.0.0.1";

    public static int PORT = 5555;

    public static int LOCALHOST_PORT = 8080;

    public static String FUNCTION_JSON = "/function.json";

    public static int FIRST_RECEIVE_TIME = 10;

    public static int COMMON_RECEIVE_TIME = 60;

    public static String COLON = ":";

    public static String API = "/api";

    public static String GET_CONTACT_LIST = "/getcontactlist";

    public static String SEND_AT_MSG = "/sendatmsg";

    public static String SEND_TXT_MSG = "/sendtxtmsg";

    public static String API_URL = PROTOCOL + LOCALHOST + COLON + PORT + API;

    public static int TXT_TYPE = 555;

    public static String ROBOT_INIT = "initRobot";

    public static String CONTACT_INIT = "initContact";

    public static String CHATROOM_INIT = "initChatroom";

    public static String CONTACT_CACHE = "robotContact";

    public static String CHATROOM_CACHE = "robotChatroom";

    public static String MONITOR_WXID_CACHE = "monitorWxid";

    public static String LAST_RECEIVE_MSG = "lastMsg";

    public static long APP_ID = 2160819310L;

    public static String APP_KEY = "llJUDThVRIgBemte";

    public static String TENCENT_CHAT = "https://api.ai.qq.com/fcgi-bin/nlp/nlp_textchat";

    // 渣男语录
    public static String SWEET_CHAT = "https://api.lovelive.tools/api/SweetNothings";

    public static String WEATHER_KEY = "324a33ba20b57ff68e6330e2d733922c";
    // 微博基金地址
    public static String FOUND_DETAIL_URL = "http://vip.stock.finance.sina.com.cn/fund/api/json_v2.php/FR_QuoteService.getQuoteList";
    // 高德天气查询地址
    public static String WEATHER_DETAIL_URL = "https://restapi.amap.com/v3/weather/weatherInfo";

    // 天天基金接口 url + 基金编号.js  相对微博准确
    public static String TT_FOUND_URL = "http://fundgz.1234567.com.cn/js/";

    public static String TT_FOUND_ALL = "http://fund.eastmoney.com/js/fundcode_search.js";
}
